package com.panopset.app.panopset;

import com.panopset.AbstractApplication;
import com.panopset.gui.PopupBox;

/**
 * Abstract Panopset application, which uses the Panopset about box.
 *
 * @author Karl Dinwiddie.
 *
 */
public abstract class Application extends AbstractApplication {

    /**
     * About box.
     */
    private AboutBox aboutBox;

    @Override
    protected final PopupBox getAboutBox() {
        if (aboutBox == null) {
            aboutBox = new AboutBox(getApplicationName(), getFlexFrame()
                    .getFrame());
        }
        return aboutBox;
    }


    @Override
    public void aboutToQuit() {

    }

    @Override
    public String createApplicationName() {
        return this.getClass().getSimpleName();
    }
}
